-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor changes for Scala.js 1.0 compatibility #3246
Conversation
class FutureTests extends CatsSuite { | ||
// Replaces Scala.js's `JSExecutionContext.runNow`, which is removed in 1.0. | ||
// TODO: We shouldn't do this! See: https://github.com/scala-js/scala-js/issues/2102 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's probably worth creating and linking to a github issue about fixing this item
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: #3247
Codecov Report
@@ Coverage Diff @@
## master #3246 +/- ##
=======================================
Coverage 93.05% 93.05%
=======================================
Files 376 376
Lines 7413 7413
Branches 201 201
=======================================
Hits 6898 6898
Misses 515 515
Continue to review full report at Codecov.
|
This effectively means that |
@djspiewak Sure, I'll add a script. My preference would be to keep this fairly low-key, though—I don't want to commit to cross-building in the long term, or to make CI builds even longer by testing 1.0.0-RC2 on every PR now. |
Perhaps you could switch to a system property, and do something like this:
|
@dwijnand Noooooo, please, no. Every time I've ever done anything like that in any build I've regretted it. All of this stuff is already a fragile pile of crap on the edge of disaster. I want to unblock people who want 1.0.0 primarily because I want us to be in a position to drop 0.6 the minute 1.0.0 final is out, and that's unlikely to be more than one or two Cats releases away. I think we should stick to the absolute minimum amount of extra process. |
WFM 😄 |
@dwijnand In any case that would publish the JVM artifacts twice. |
Yeah, but I think that's fine if you're using the new sonatype bundle thing. |
And here's the 2.1.0 backport branch, which also passes |
@djspiewak Any objection to merging now? |
@travisbrown Thanks for this. it would help unlock a big part of the ecosystem that can't be ported to RC2 just yet |
These changes make it possible to build Cats on Scala.js 1.0 (currently 1.0.0-RC2) via an environmental variable, without actually changing anything significant about the current build, which is still on Scala.js 0.6.
This approach is currently used by Simulacrum, Discipline (although Discipline does test Scala.js 1.0.0-RC2 in CI, and this change doesn't), etc.
I've confirmed that the following succeeds: